READ ME:

This folder contains the data replication files for "Ambiguity and Enforement" by Calford and DeAngelo. 

1. The sub folder "Raw_data" contains the raw data and a Stata .do file that converts the raw data to a cleaned and useable form. 
Description of variable names is below. 

2. The sub folder "oTree_files" contains otree zip files for each treatment. The experiment was originally programmed in oTree version 2. 
oTree does not maintain backwards compatibility. The files *appear* to run OK on Evan's oTreeHub server as of March 2022, but we cannot guarantee that
they will run succesfully for you.

3. The sub folder "Cleaned_data" contains the cleaned data, and .do files that create the figures and tables from the paper. The user may need to install
 the kdens2 package (using "ssc install kcdens2") to create some of the figures. Description of variable names is below.

4. The sub folder "Figure_1" contains the data for Figure 1 of the paper. Note that this is not experimental data. The user may need to install the 
matchit and freqindex packages (using "ssc install matchit" and "ssc install freqindex") to create Figure 1.

5. The sub folder "Instructions" contains the instructions.



**********************************************************************************************************************
Variables included in the cleaned data:

participantpayoff -- Total payoff earned by the participant.
role -- 1 if Officer, 2 if Driver
m_a -- monitoring level on road A
m_b -- monitoring level on road B
task_choice -- 1 if road A chosen, 2 if road B chosen, 3 if road C chosen
playerdisplayed -- 1 if monitoring will be displayed to the driver
payoff -- Payoff for that round
group -- group ID (within session)
is_observed -- 1 if monitoring was observed by the driver
round -- round
is_option -- 1 if officer could choose whether to display monitoring to driver, 0 if exogenous
revenue_round -- 1 if RevMax round, 0 if CrimMin round
subsessiontreatment -- Name of treatment
subsessionround_order -- categorizes the order in which sub treatments were played.
age -- subject age
num_econ_classes -- How many economics classes had subject taken?
gpa -- subject GPA
_merge -- check variable that merge with demogrophics was succesful
session -- Session ID
stata_id -- Subject ID (unique across whole experiment)
gender -- subject gender
major -- subject Major
year_of_degree -- subject year of study
chose_A -- 1 if driver chose road A, 0 otherwise
chose_B -- 1 if driver chose road B, 0 otherwise
chose_C -- 1 if driver chose road C, 0 otherwise


************************************************************************************************************************
Variables included in the raw data:

participant.id_in_session -- subject id (within session)
participant.code -- unique subject identifier (across whole session)
participant.label -- name of the computer the subject used	
participant._is_bot -- Used only for testing the software.	
participant._index_in_pages -- Will show 290 if subject completed the experiment	
participant._max_page_index -- Total number of pages in the experiment	
participant._current_app_name -- Used only for testing the software.
participant._current_page_name -- Used only for testing the software.	
participant.ip_address	-- IP address of subject terminal.
participant.time_started -- Time subject page was first loaded.	
participant.visited -- Used only for testing the software.	
participant.mturk_worker_id -- Not used	
participant.mturk_assignment_id -- Not used	
participant.payoff -- Total payoff for the subject.	
player.id_in_group -- 1 if Officer, 2 if driver	
player.high_monitor -- monitoring level on road A	
player.low_monitor --  monitoring level on road B		
player.task_choice -- 1 if road A chosen, 2 if road B chosen, 3 if road C chosen
player.quiz_question_1	-- Used only in Prob treatment. Used only to ensure that subject had answered quiz question correctly before moving on.
player.quiz_question_2  -- Used only in Prob treatment. Used only to ensure that subject had answered quiz question correctly before moving on.	
player.quiz_question_3  -- Used only in Prob treatment. Used only to ensure that subject had answered quiz question correctly before moving on.	
player.displayed -- 1 if monitoring will be displayed to the driver	
player.payoff -- Subject payoff in round.
group.id_in_subsession -- group ID (within session)	
group.is_observed -- 1 if monitoring was observed by the driver	
group.color_drawn -- Not used	
group.driver_win_prob -- Variable used within program to calculate payoffs.	
subsession.round_number	-- Round number
subsession.is_option -- 1 if officer could choose whether to display monitoring to driver, 0 if exogenous	
subsession.is_arrest_round -- 1 if RevMax round, 0 if CrimMin round	
subsession.treatment -- Treatment	
subsession.round_order-- Controls the order in which subjects see the sub-treatments
session.code -- unique session code	
session.label -- Not used.	
session.experimenter_name -- Not used.	
session.mturk_HITId -- Not used.	
session.mturk_HITGroupId -- Not used.	
session.comment	-- Not used.
session.is_demo -- Used only for testing the software.


